package com.hl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.order.mapper.SpecTypesMapper;
import com.hl.order.domain.SpecTypes;
import com.hl.order.service.ISpecTypesService;

/**
 * 规格类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
@Service
public class SpecTypesServiceImpl implements ISpecTypesService 
{
    @Autowired
    private SpecTypesMapper specTypesMapper;

    /**
     * 查询规格类型
     * 
     * @param specTypesId 规格类型主键
     * @return 规格类型
     */
    @Override
    public SpecTypes selectSpecTypesBySpecTypesId(Long specTypesId)
    {
        return specTypesMapper.selectSpecTypesBySpecTypesId(specTypesId);
    }

    /**
     * 查询规格类型列表
     * 
     * @param specTypes 规格类型
     * @return 规格类型
     */
    @Override
    public List<SpecTypes> selectSpecTypesList(SpecTypes specTypes)
    {
        return specTypesMapper.selectSpecTypesList(specTypes);
    }

    /**
     * 新增规格类型
     * 
     * @param specTypes 规格类型
     * @return 结果
     */
    @Override
    public int insertSpecTypes(SpecTypes specTypes)
    {
        return specTypesMapper.insertSpecTypes(specTypes);
    }

    /**
     * 修改规格类型
     * 
     * @param specTypes 规格类型
     * @return 结果
     */
    @Override
    public int updateSpecTypes(SpecTypes specTypes)
    {
        return specTypesMapper.updateSpecTypes(specTypes);
    }

    /**
     * 批量删除规格类型
     * 
     * @param specTypesIds 需要删除的规格类型主键
     * @return 结果
     */
    @Override
    public int deleteSpecTypesBySpecTypesIds(Long[] specTypesIds)
    {
        return specTypesMapper.deleteSpecTypesBySpecTypesIds(specTypesIds);
    }

    /**
     * 删除规格类型信息
     * 
     * @param specTypesId 规格类型主键
     * @return 结果
     */
    @Override
    public int deleteSpecTypesBySpecTypesId(Long specTypesId)
    {
        return specTypesMapper.deleteSpecTypesBySpecTypesId(specTypesId);
    }
}
